package com.cy.pojo;

public class GoodsSingle {
    private String name;//保存商品名称
    private float price;//保存商品价格
    private int num;//保存商品购买数量
    private float total;
    public GoodsSingle() {
    }

    //对应的Getter和Setter方法
    public void setName(String name){
        this.name=name;
    }
    public void setPrice(float price){
        this.price=price;
    }
    public void setNum(int num){
        this.num=num;
    }

    public String getName(){
        return name;
    }
    public float getPrice(){
        return price;
    }
    public int getNum(){
        return num;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }
}
